#ifndef  __TEM_H__
#define  __TEM_H__

 #include "lvgl/lvgl.h"
#include "lvgl/demos/lv_demos.h"
#include <unistd.h>
#include <pthread.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
extern  volatile int Temp;
extern  volatile int hum;
extern  volatile int press;
extern volatile int Lux;
extern  volatile int hei;

extern int tem_update_requested;
extern lv_obj_t *main_cont; //环境检测容器
void exit_tem(lv_event_t *e);
void create_tem(lv_obj_t* parent);
int uart_init(const char *uart_name);
//void tem_timer_cb(lv_timer_t *timer);
void update_tem_ui(void);
void * read_sensor_data(void *arg);
#endif